package homework_03;

import java.util.Scanner;

/**
 * 邮局汇款汇费计算
 */
public class Test_12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入汇款金额：");
        double num = sc.nextDouble();
        double fee = 0.0;
        if(num<100){
            fee = 1;
        }else if(num>=100&&num<=5000){
            fee = num * 0.01;
        }else if(num>5000){
            fee = 50;
        }
        System.out.println("汇费为" + fee + "元");
    }
}
